home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / uip / ucbmail / cmdtab.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-06-03  |  4.1 KB  |  124 lines

  1. /*
  2.  *  C M D T A B . C 
  3.  *
  4.  *  EE/CIS Computer Lab
  5.  *  Department of Computer and Information Sciences
  6.  *  Department of Electrical Engineering
  7.  *  University of Delaware
  8.  *
  9.  *  REVISION HISTORY:
  10.  *
  11.  *  $Revision: 1.3 $
  12.  *
  13.  *  $Log:    cmdtab.c,v $
  14.  * Revision 1.3  85/11/20  14:32:21  galvin
  15.  * Changed the name of the command table (cmdtab) to CmdTab so as not
  16.  * to conflict with the command table of MMDF.
  17.  * 
  18.  * Revision 1.2  85/11/20  14:29:22  galvin
  19.  * Added comment header for revision history.
  20.  * 
  21.  *
  22.  */
  23.  
  24. /*
  25.  * Copyright (c) 1980 Regents of the University of California.
  26.  * All rights reserved.  The Berkeley software License Agreement
  27.  * specifies the terms and conditions for redistribution.
  28.  */
  29.  
  30. #ifndef lint
  31. static char *sccsid = "@(#)cmdtab.c    5.3 (Berkeley) 9/15/85";
  32. #endif not lint
  33.  
  34. #include "./def.h"
  35.  
  36. /*
  37.  * Mail -- a mail program
  38.  *
  39.  * Define all of the command names and bindings.
  40.  */
  41.  
  42. extern int type(), preserve(), delnorm(), undelete(), next(), shell(), schdir();
  43. extern int save(), help(), headers(), pdot(), respond(), editor();
  44. extern int edstop(), rexit(), pcmdlist(), sendmail(), from(), copycmd();
  45. extern int messize(), deltype(), unset(), set(), source();
  46. extern int pversion(), group(), top(), core(), null(), stouch(), visual();
  47. extern int swrite(), dosh(), file(), echo(), Respond(), scroll(), ifcmd();
  48. extern int elsecmd(), endifcmd(), mboxit(), clobber(), alternates();
  49. extern int local(), folders(), igfield(), Type(), retfield(), more(), More();
  50. extern int unread();    /* , Header(); */
  51.  
  52. struct cmd CmdTab[] = {
  53.     "next",        next,        NDMLIST,    0,    MMNDEL,
  54.     "alias",    group,        M|RAWLIST,    0,    1000,
  55.     "print",    type,        MSGLIST,    0,    MMNDEL,
  56.     "type",        type,        MSGLIST,    0,    MMNDEL,
  57.     "Type",        Type,        MSGLIST,    0,    MMNDEL,
  58.     "Print",    Type,        MSGLIST,    0,    MMNDEL,
  59.     "visual",    visual,        I|MSGLIST,    0,    MMNORM,
  60.     "top",        top,        MSGLIST,    0,    MMNDEL,
  61.     "touch",    stouch,        W|MSGLIST,    0,    MMNDEL,
  62.     "preserve",    preserve,    W|MSGLIST,    0,    MMNDEL,
  63.     "delete",    delnorm,    W|P|MSGLIST,    0,    MMNDEL,
  64.     "dp",        deltype,    W|MSGLIST,    0,    MMNDEL,
  65.     "dt",        deltype,    W|MSGLIST,    0,    MMNDEL,
  66.     "undelete",    undelete,    P|MSGLIST,    MDELETED,MMNDEL,
  67.     "unset",    unset,        M|RAWLIST,    1,    1000,
  68.     "mail",        sendmail,    R|M|I|STRLIST,    0,    0,
  69.     "mbox",        mboxit,        W|MSGLIST,    0,    0,
  70.     "more",        more,        MSGLIST,    0,    MMNDEL,
  71.     "page",        more,        MSGLIST,    0,    MMNDEL,
  72.     "More",        More,        MSGLIST,    0,    MMNDEL,
  73.     "Page",        More,        MSGLIST,    0,    MMNDEL,
  74.     "unread",    unread,        MSGLIST,    0,    MMNDEL,
  75.     "Unread",    unread,        MSGLIST,    0,    MMNDEL,
  76.     "new",        unread,        MSGLIST,    0,    MMNDEL,
  77.     "New",        unread,        MSGLIST,    0,    MMNDEL,
  78.     "!",        shell,        I|STRLIST,    0,    0,
  79.     "copy",        copycmd,    M|STRLIST,    0,    0,
  80.     "chdir",    schdir,        M|STRLIST,    0,    0,
  81.     "cd",        schdir,        M|STRLIST,    0,    0,
  82.     "save",        save,        STRLIST,    0,    0,
  83.     "source",    source,        M|STRLIST,    0,    0,
  84.     "set",        set,        M|RAWLIST,    0,    1000,
  85.     "shell",    dosh,        I|NOLIST,    0,    0,
  86.     "version",    pversion,    M|NOLIST,    0,    0,
  87.     "group",    group,        M|RAWLIST,    0,    1000,
  88.     "write",    swrite,        STRLIST,    0,    0,
  89.     "from",        from,        MSGLIST,    0,    MMNORM,
  90.     "file",        file,        T|M|RAWLIST,    0,    1,
  91.     "folder",    file,        T|M|RAWLIST,    0,    1,
  92.     "folders",    folders,    T|M|RAWLIST,    0,    1,
  93.     "?",        help,        M|NOLIST,    0,    0,
  94.     "z",        scroll,        M|STRLIST,    0,    0,
  95.     "headers",    headers,    MSGLIST,    0,    MMNDEL,
  96.     "help",        help,        M|NOLIST,    0,    0,
  97.     "=",        pdot,        NOLIST,        0,    0,
  98.     "Reply",    Respond,    R|I|MSGLIST,    0,    MMNDEL,
  99.     "Respond",    Respond,    R|I|MSGLIST,    0,    MMNDEL,
  100.     "reply",    respond,    R|I|MSGLIST,    0,    MMNDEL,
  101.     "respond",    respond,    R|I|MSGLIST,    0,    MMNDEL,
  102.     "edit",        editor,        I|MSGLIST,    0,    MMNORM,
  103.     "echo",        echo,        M|RAWLIST,    0,    1000,
  104.     "quit",        edstop,        NOLIST,     0,    0,
  105.     "list",        pcmdlist,    M|NOLIST,    0,    0,
  106.     "local",    local,        M|RAWLIST,    0,    1000,
  107.     "xit",        rexit,        M|NOLIST,    0,    0,
  108.     "exit",        rexit,        M|NOLIST,    0,    0,
  109.     "size",        messize,    MSGLIST,    0,    MMNDEL,
  110.     "hold",        preserve,    W|MSGLIST,    0,    MMNDEL,
  111.     "if",        ifcmd,        F|M|RAWLIST,    1,    1,
  112.     "else",        elsecmd,    F|M|RAWLIST,    0,    0,
  113.     "endif",    endifcmd,    F|M|RAWLIST,    0,    0,
  114.     "alternates",    alternates,    M|RAWLIST,    0,    1000,
  115.     "ignore",    igfield,    M|RAWLIST,    0,    1000,
  116.     "discard",    igfield,    M|RAWLIST,    0,    1000,
  117.     "retain",    retfield,    M|RAWLIST,    0,    1000,
  118. /*    "Header",    Header,        STRLIST,    0,    1000,    */
  119.     "core",        core,        M|NOLIST,    0,    0,
  120.     "#",        null,        M|NOLIST,    0,    0,
  121.     "clobber",    clobber,    M|RAWLIST,    0,    1,
  122.     0,        0,        0,        0,    0
  123. };
  124.